package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author lx
 */
@Data
public class PasswordUpdateDTO {

    @NotBlank(message = "旧密码不能为空")
    @Length(max = 20, message = "旧密码不能超过20个字符")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Length(max = 20, message = "新密码不能超过20个字符")
    private String newPassword;
}
